home *** CD-ROM | disk | FTP | other *** search
- on getpoemname a, n, c, e
- global gextension
- set thenumber to count(a)
- if (n + 1) > thenumber then
- beep(1)
- put "ERROR !!! - getPoemNumber Current HAIKU number WRONG!"
- put a
- put n
- put c
- return EMPTY
- end if
- set thecku to getaProp(a, n + 1)
- if c > count(thecku) then
- beep(1)
- put "ERROR !!! - getPoemNumber Current Text number WRONG!"
- put a
- put n
- put c
- return EMPTY
- end if
- if not voidp(e) then
- return getaProp(getaProp(thecku, c), 1)
- else
- if getaProp(thecku, c) = EMPTY then
- return EMPTY
- else
- return getaProp(getaProp(thecku, c), 1) & string(gextension)
- end if
- end if
- end
-
- on getpoempos a, n, c
- set table to [120, 270, 120, 260, 120, 120, 120]
- set thenumber to count(a)
- if (n + 1) > thenumber then
- beep(1)
- put "ERROR !!! - getPoemPos Current HAIKU number WRONG!"
- put a
- put n
- put c
- return EMPTY
- end if
- set thecku to getaProp(a, n + 1)
- if c > count(thecku) then
- beep(1)
- put "ERROR !!! - getPoemPos Current Text number WRONG!"
- put a
- put n
- put c
- return EMPTY
- end if
- if getaProp(getaProp(thecku, c), 2) = EMPTY then
- return getaProp(table, c)
- else
- return getaProp(getaProp(thecku, c), 2)
- end if
- end
-
- on showbiopicture lang
- global gpbio, gphotonumber
- end
-
- on getbioname a, n, c
- global gextension
- set thenumber to count(a)
- if n > thenumber then
- beep(1)
- put "ERROR !!! - getBioName Current HAIKU number WRONG!"
- put a
- put n
- put c
- return EMPTY
- end if
- set thebio to getaProp(a, n + 1)
- if count(thebio) <> 6 then
- beep(1)
- put "ERROR !!! - Wrong gTBio list!"
- put a
- put n
- put c
- return EMPTY
- end if
- if c = "JN" then
- return getaProp(thebio, 2) & string(gextension)
- else
- if c = "EN" then
- return getaProp(thebio, 3) & string(gextension)
- else
- if c = "JB" then
- return getaProp(thebio, 4) & string(gextension)
- else
- if c = "EB" then
- return getaProp(thebio, 5) & string(gextension)
- else
- if c = "NK" then
- return getaProp(thebio, 6) & string(gextension)
- else
- beep(1)
- put "ERROR !!! - Wrong getBioName request code"
- put a
- put n
- put c
- return EMPTY
- end if
- end if
- end if
- end if
- end if
- beep(1)
- put "ERROR !!! - Wrong getBioName code"
- put a
- put n
- put c
- return EMPTY
- end
-
- on getbiophoto c
- global gtpoem, gppoem, gtbio, gpbio, gcurrentnumber, gblenddraw, gbiophotonumber, gbiophoto, gextension
- set a to getaProp(gtbio, gcurrentnumber + 1)
- if count(a) <> 6 then
- beep(1)
- put "ERROR !!! - getBioPhoto Current HAIKU number WRONG!"
- put c
- return EMPTY
- end if
- set thebiotype to getaProp(a, 1)
- if thebiotype = EMPTY then
- return EMPTY
- end if
- set a to getaProp(gpbio, thebiotype)
- if c = "C" then
- return count(a)
- end if
- if count(a) < (gbiophotonumber + 1) then
- set gbiophotonumber to 0
- beep(1)
- put "ERROR !!! -getBioPhoto- Wrong gBioPhotoNumber!"
- end if
- set thebiophotolist to getaProp(a, gbiophotonumber + 1)
- if count(thebiophotolist) <> 10 then
- beep(1)
- put "ERROR !!! -getBioPhoto- Wrong gTBio list!"
- put c
- return EMPTY
- end if
- if c = "P" then
- return getaProp(thebiophotolist, 1) & string(gextension)
- else
- if c = "S" then
- return getaProp(thebiophotolist, 2) & string(gextension)
- else
- if c = "PL" then
- return the number of cast string(getaProp(thebiophotolist, 2) & string(gextension)) - 1
- else
- if c = "E" then
- return getaProp(thebiophotolist, 5)
- else
- if c = "H" then
- return getaProp(thebiophotolist, 3)
- else
- if c = "V" then
- return getaProp(thebiophotolist, 4)
- else
- if c = "EH" then
- return getaProp(thebiophotolist, 6)
- else
- if c = "EV" then
- return getaProp(thebiophotolist, 7)
- else
- if c = "EE" then
- return getaProp(thebiophotolist, 8)
- else
- if c = "EEH" then
- return getaProp(thebiophotolist, 9)
- else
- if c = "EEV" then
- return getaProp(thebiophotolist, 10)
- else
- beep(1)
- put "ERROR !!! -getBioPhoto- Wrong getBioName request code"
- put c
- return EMPTY
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- beep(1)
- put "ERROR !!! -getBioPhoto- Wrong getBioPhotoName code"
- put c
- return EMPTY
- end
-
- on getphoto c
- global gtpoem, gppoem, gtbio, gpbio, gcurrentnumber, gblenddraw, gphotonumber, gphoto, gextension
- set a to getaProp(gppoem, gcurrentnumber + 1)
- if c = "C" then
- return count(a)
- end if
- if count(a) < (gphotonumber + 1) then
- set gphotonumber to 0
- beep(1)
- put "ERROR !!! -getPhoto- Wrong gPhotoNumber!"
- end if
- set thephotolist to getaProp(a, gphotonumber + 1)
- if count(thephotolist) <> 10 then
- beep(1)
- put "ERROR !!! -getPhoto- Wrong gPPoem list!"
- put c
- return EMPTY
- end if
- if c = "P" then
- return getaProp(thephotolist, 1) & string(gextension)
- else
- if c = "S" then
- return getaProp(thephotolist, 2) & string(gextension)
- else
- if c = "PL" then
- return the number of cast string(getaProp(thephotolist, 2) & string(gextension)) - 1
- else
- if c = "E" then
- return getaProp(thephotolist, 5)
- else
- if c = "H" then
- return getaProp(thephotolist, 3)
- else
- if c = "V" then
- return getaProp(thephotolist, 4)
- else
- if c = "EH" then
- return getaProp(thephotolist, 6)
- else
- if c = "EV" then
- return getaProp(thephotolist, 7)
- else
- if c = "EE" then
- return getaProp(thephotolist, 8)
- else
- if c = "EEH" then
- return getaProp(thephotolist, 9)
- else
- if c = "EEV" then
- return getaProp(thephotolist, 10)
- else
- beep(1)
- put "ERROR !!! -getPhoto- Wrong getName request code"
- put c
- return EMPTY
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- beep(1)
- put "ERROR !!! -getPhoto- Wrong getPhotoName code"
- put c
- return EMPTY
- end
-